/**
 * 
 * @authors supmain (mtingfeng@gmail.com)
 * @date    2014-12-12 10:59:20
 * @update  2014-12-12 10:59:20
 * @for webapp.html
 * @version $Id$
 */
var BST = BST || {};
BST.cooperate = {	
	init: function(){
		var that = this;
		//轮播图
		that.bannerPlay();
    },
    bannerPlay: function(){
    	var params = {
			   startSlide: 0,                                   //起始图片切换的索引位置
			   auto: 3000,                                      //设置自动切换时间，单位毫秒
			   continuous: true,                                //无限循环的图片切换效果
			   disableScroll: false,                             //阻止由于触摸而滚动屏幕
			   stopPropagation: true,                           //停止滑动事件
			   callback: function(index, element) {},           //回调函数，切换时触发
			   transitionEnd: function(index, element) {}       //回调函数，切换结束调用该函数。
			};
		// pure JS
		/*var elem = document.getElementById('bannerbox');
		window.mySwipe = Swipe(elem, params);*/
		window.mySwipe = $('#bannerbox').Swipe(params).data('Swipe');
    }
};


$(function(){
   BST.cooperate.init();
});